package com.qf.openapi2204.monitor.feignclient;

import com.qf.openapi2204.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("OPENAPI-ES")
public interface EsClient {

    @GetMapping("/es/avg/{apiname}/{intervalmin}")
    public ResultVo getApiTimeCostAvg(@PathVariable("apiname") String apiname, @PathVariable("intervalmin") Integer intervalmin);

}
